﻿using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace PMS.XCMG.Board.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    public class HomeController : Controller
    {
        [HttpGet]
        public async Task<string> GetMenuIndex()
        {
            string key = "MenuIndex";
            bool isExists1 = RedisHelper.Exists(key);
            if (isExists1)
            {
                return await RedisHelper.GetAsync(key);
            }
            return "";
        }
    }
}
